#include<stdio.h>
int main()
{
	int i,j=1,k=1;
	scanf("%d",&i);
	for(j=1;j<=i;j++)
	{
		k*=j;
	
	 } 
	 	printf("%d",k);
		
}
